<?php
class WxuserDouble extends ActiveRecord
{
    public $id_wxuser_double;
    public $id_wxuser;
    public $id_tradedetail;
    public $status;

    const STATUS_USED = '2';
    const STATUS_UNUSE = '1';

    public static function model($className=__CLASS__)
    {
        return parent::model($className);
    }

    public function tableName()
    {
        return 'wxuser_double';
    }

    /**
     * @return array validation rules for model attributes.
     */
    public function rules()
    {
        return array(
            array('id_wxuser_double, id_wxuser, id_tradedetail, createtime', 'safe'),
        );
    }

    /**
     * @return array customized attribute labels (name=>label)
     */
    public function attributeLabels()
    {
        return array(

        );
    }

    public function getAttributes($names = null)
    {
        $attributes = parent::getAttributes($names);


        return $attributes;
    }
}
